import React from 'react';
import { RouteComponentProps } from 'react-router-dom';

// 强类型定义
interface MatchParams {
    id: string
}

export const DetailPage: React.FC<RouteComponentProps<MatchParams>> = (props) => {
    return (
        <h1>旅游路线详情页面，路线ID：{props.match.params.id}</h1>
    )
};